*Please use "TS_Distributive Politics_Provincial Level.dta"
*Pleas install outreg2 first
*Please change directory: cd "C:\XXX"

*table 3

reg socasistpergdp comp akpshare gdppercapdolinth lnvoters  if year<2016, robust
outreg2 using greencardturkish3, bdec(3) excel replace label 
reg socasistpergdp comp akpshare gdppercapdolinth lnvoters  if year>=2016, robust
outreg2 using greencardturkish3, bdec(3) excel append label  

*Appendix
*Descriptive Statistics
sum socasistpergdp comp akpshare gdppercapdolinth lnvoters

*Robustness Checks
*Clustered standard Errors
reg socasistpergdp comp akpshare gdppercapdolinth lnvoters  if year<2016, cluster(code)
outreg2 using greencardturkish3apdx1, bdec(3) excel replace label 
reg socasistpergdp comp akpshare gdppercapdolinth lnvoters  if year>=2016, cluster(code)
outreg2 using greencardturkish3apdx1, bdec(3) excel append label  

*fixed effects
xtset code year
xtreg socasistpergdp comp akpshare gdppercapdolinth lnvoters  if year<2016, fe
outreg2 using greencardturkish3apdx2, bdec(3) excel replace label 
xtreg socasistpergdp comp akpshare gdppercapdolinth lnvoters  if year>=2016, fe
outreg2 using greencardturkish3apdx2, bdec(3) excel append label  

*stronghold
reg socasistpergdp comp akpshare gdppercapdolinth lnvoters akpstronghold if year<2016, robust
outreg2 using greencardturkish3apdx3, bdec(3) excel replace label 
reg socasistpergdp comp akpshare gdppercapdolinth lnvoters akpstronghold if year>=2016, robust
outreg2 using greencardturkish3apdx3, bdec(3) excel append label  
